<? /* license

BilugCMS (http://www.bilug.it) - Content Management System for dynamic web sites
Copyright (C) 2005-2008  Federico Villa and Alessio Loro Piana

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

For reference, contact bilugcms@vilnet.it


license */ ?>
<link type="text/css" href="css/ui-lightness/jquery-ui-1.7.3.custom.css" rel="stylesheet" />	
		<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-1.7.3.custom.min.js"></script>
<style type="text/css">
	#tabs {
		width: 99%;
	}
	</style>
	<script type="text/javascript">
	$(function() {
		$("#tabs").tabs();
	});
	</script>

<?
echo "<h3> Argomenti Gallerie </h3>
	<div id=\"tabs\">
	<ul>
        <li><a href=\"#fragment-1\"><span>Elenco</span></a></li>
        <li><a href=\"#fragment-2\"><span>Nuovo</span></a></li>
	</ul>             
	                
	<div id=\"fragment-1\"";
require_once("auth.php");
$dir='../gals';	
if ($handle = opendir($dir)) {
	echo "<div class=\"contenitore\"><div class=\"azzerafloat\"></div>";		   
	while (false !== ($file = readdir($handle))) 
	{ 
		if ($file != '.' and $file != '..' and filetype($dir."/".$file) == 'dir')
      echo "<div class=\"evidenzia\">
      <div class=\"float300\">$file</div> <!-- titolo -->
      <div class=\"float70\"><img src=\"./img/del.png\" id=\"ico\" /><a title=\"|Elimina l'Argomento (eliminare prima le gallerie e le immagini)\" href=\"del_arggal.php?id=$file\">Elimina</a></div>
      <!-- Assegnamo all'id il valore che otteniamo con la query -->
      <div class=\"float70\"><img src=\"./img/mod.png\" id=\"ico\" /><a title=\"|Modifica il nome dell'argomento e la descrizione\" href=\"area.php?pag=insert_arggal.php&amp;id=$file\">Modifica</a></div>
      <div class=\"float70\"><img src=\"./img/cam.png\" id=\"ico\" /><a title=\"|Visualizza le gallerie disponibili nell'Argomento\" href=\"area.php?pag=elenco_gallerie.php&amp;argo=$file\">Gallerie</a></div>
      <div class=\"float70\"><img src=\"./img/pre.png\" id=\"ico\" /><a title=\"|Gestisci le immagini delle Gallerie nell'argomento (eliminazione)\" href=\"area.php?pag=listafile.php&amp;g=1&amp;dir=$dir/$file&amp;titolo=Immagini delle Gallerie in: $file\">Gestione</a></div>
      <div class=\"azzerafloat\"></div></div>";
	}
	echo "</div>";
}
else
{
	echo "<p>Nessuna Argomento Galleria</p>";		
}
echo "<br></div>
<div id=\"fragment-2\"";
 include("./insert_arggal.php");
echo "</div>";

closedir($handle); 
?>
